package com.wujilin.okra.activity;

import static com.wujilin.okra.Okra.EXTRA_OBJECTIVE_ID;
import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;

import com.wujilin.okra.fragment.OkraFragment;


/**
 * @author Belin Wu
 */
public class OkraActivity extends SingleFragmentActivity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
	}
	
    @Override
    public Fragment onCreateFragment() {
    	Intent intent = getIntent();
    	long id = intent.getLongExtra(EXTRA_OBJECTIVE_ID, 0);
        return OkraFragment.newInstance(id);
    }
}
